solving higher degree polynomials by synthetic division